package cn.stat.service.impl;

import cn.stat.domain.BaseEntity;
import cn.stat.mapper.StatMapper;
import cn.stat.service.StatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Mxb
 * @version 1.0
 * @date 2019/11/5 16:19
 */
@Service
public class StatServiceImpl implements StatService {

    @Autowired
    private StatMapper statMapper;

    /**
     * 加载客户地区数据
     * @return
     */
    @Override
    public List<BaseEntity> loadCustomerAreaStatList() {
        return statMapper.queryCustomerAreaStat();
    }


    @Override
    public List<BaseEntity> loadOpernameYearGradeStatList(String year) {
        return statMapper.queryOpernameYearGradeStat(year);
    }

    @Override
    public List<Double> queryCompanyYearGradeStat(String year) {
        return statMapper.queryCompanyYearGradeStat(year);
    }
}
